---
id: "module-warning-decorator"
keywords: ["warning", "decorator"]
name: "@@warning"
summary: "This is the `@@warning` decorator."
category: "decorators"
---

The `@@warning` decorator is used to modify the enabled compiler warnings for the current module. See [here](../docs/manual/warning-numbers.mdx) for all available warning numbers. Prefix the warning number with `+` or `-` to enable or disable respectively.

### Examples

<CodeTab labels={["ReScript", "JS Output"]}>

```res
// Disables warning 27 for the current module
@@warning("-27")
```

```js

```

</CodeTab>

### References

- [Warning Numbers](../docs/manual/warning-numbers.mdx)
